@extends('layouts.app', ['activePage' => 'extended', 'menuParent' => 'download', 'titlePage' => __('Enviar Arquivo')])

@section('content')
    <div class="content">
        <div class="container-fluid">
            <div class="row">

                <div class="col-md-12">
                    <div class="card ">
                        <div class="card-header card-header-rose card-header-text">
                            <div class="card-text">
                                <h4 class="card-title">Enviar Arquivo</h4>
                            </div>
                        </div>
                        <div class="card-body ">
                            {!! Form::open(['route'=>'dash.download.store','files'=>true,'class'=>'form-horizontal']) !!}
                            <div class="row">
                                <label class="col-sm-2 col-form-label">Arquivo</label>
                                <div class="col-sm-10">

                                    <div class="fileinput fileinput-new text-center" data-provides="fileinput">
                                        <div class="fileinput-new thumbnail">

                                        </div>
                                        <div class="fileinput-preview fileinput-exists thumbnail"></div>
                                        <div>
                    <span class="btn btn-rose btn-round btn-file">
                      <span class="fileinput-new">Selecionar arquivo</span>
                      <span class="fileinput-exists">Trocar</span>
                      {!! Form::file('up') !!}

                    </span>
                                            <a href="#" class="btn btn-danger btn-round fileinput-exists"
                                               data-dismiss="fileinput"><i class="fa fa-times"></i> Remover</a>
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <div class="row">
                                <label class="col-sm-2 col-form-label">Publico</label>
                                <div class="col-sm-10">
                                    <div class="form-group">
                                        {!! Form::select('visible',[1=>'Sim',0=>'Não'],0,['class'=>'form-control']) !!}
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <label class="col-sm-2 col-form-label">Breve Comentário</label>
                                <div class="col-sm-10">
                                    <div class="form-group">
                                        <textarea name="comment" id="editor" cols="30" rows="10"
                                                  class="form-control"></textarea>
                                    </div>
                                </div>
                            </div>


                            <div class="card-footer">
                                <button type="submit" class="btn btn-fill btn-rose">Enviar</button>
                            </div>
                            {!! Form::close() !!}
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>
@endsection

@push('js')

@endpush